<template>
	<view class="input-prompt-box">
		<view class="input-prompt">
			<view class="prompt-img">
				<image :src="`/static/images/list/prompt${isSuccess?1:2}.png`" mode=""></image>
			</view>
			<view class="title">
				{{isSuccess?'发票录入成功':'发票录入失败'}}
			</view>
			<view class="message" v-if="!isSuccess">
				{{message}}
			</view>
			<view class="flex-a-center flex-j-center btn-box">
				<view class="end">
					结束录入
				</view>
				<view class="continue">
					继续录入
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref,
		watch,

	} from 'vue'
	const props = defineProps({
		message: String,
		isSuccess: Boolean
	})
</script>

<style lang="scss">
	.input-prompt-box {
		height: 100%;
		width: 100%;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 10;
		background: #0000003d;

		.input-prompt {
			background: #fff;
			width: calc(100% - 128rpx);
			box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
			position: absolute;
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
			border-radius: 24rpx;
			padding-top: 60rpx;
			padding-bottom: 48rpx;

			.prompt-img {
				text-align: center;

				image {
					width: 80rpx;
					height: 80rpx;
				}
			}

			.title {
				font-weight: 500;
				font-size: 32rpx;
				color: #333333;
				text-align: center;
				margin-top: 16rpx;
				margin-bottom: 32rpx;
			}

			.message {
				font-weight: 400;
				font-size: 28rpx;
				color: #666666;
				padding: 0 48rpx;
				margin-bottom: 20rpx;
			}

			.btn-box {
				>view {
					width: 240rpx;
					height: 64rpx;
					border-radius: 32rpx;
					text-align: center;
					line-height: 64rpx;
					font-weight: 400;
					font-size: 32rpx;
				}

				.end {
					background: #FFFFFF;
					border: 2rpx solid #D9D9D9;
					box-sizing: border-box;
					color: #296DFA;
					margin-right: 46rpx;
				}

				.continue {
					color: #FFFFFF;
					background: #296DFA;
				}
			}
		}
	}
</style>